package com.highstockings.dao;

import com.highstockings.model.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository("UserMapper")
public interface UserMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer uid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    @Select("select * from tb_user")
    User selectUserInfo(Integer uId);

    @Select("select * from tb_user where username=#{arg0} and password=#{arg1}")
    User selectUserByNamePass(String username, String password);
}